package com.hspedu.modifier;

/**
 * @Author Stringzhua
 * @Date 2024/3/1 14:13
 * description:
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("public"+"  protected"+"  默认"+" private");
        A a = new A();
        a.m1();

        B b = new B();
        b.say();


        //只有默认和public可以修饰类
//        class Tiger{}
    }
}
